package org.ccay.core.base;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * 键值对VO
 * 
 */
public class KeyValuePair<K,V> implements Serializable {
	
	private static final long serialVersionUID = -4667685944202222910L;
	private K key;
	private V value;
	
	/**
	 * 默认构造
	 */
	public KeyValuePair(){
		
	}
	/**
	 * 通过Key和Value构造
	 * @param key
	 * @param value
	 */
	public KeyValuePair(K key,V value){
		this.key = key;
		this.value = value;
	}
	/**
	 * @return key
	 */
	public K getKey() {
		return key;
	}
	/**
	 * @param key 要设置的 key
	 */
	public void setKey(K key) {
		this.key = key;
	}
	/**
	 * @return value
	 */
	public V getValue() {
		return value;
	}
	/**
	 * @param value 要设置的 value
	 */
	public void setValue(V value) {
		this.value = value;
	}
}
